<?php 
include './include/conf.php';

$nom = (isset($_POST['nom'])) ? $_POST['nom'] : NULL;
$prenom = (isset($_POST['prenom'])) ? $_POST['prenom'] : NULL;
$adresse = (isset($_POST['adresse'])) ? $_POST['adresse'] : NULL;
$telfixe = (isset($_POST['tel_fixe'])) ? $_POST['tel_fixe'] : NULL;
$telport = (isset($_POST['tel_port'])) ? $_POST['tel_port'] : NULL;
$email = (isset($_POST['email'])) ? $_POST['email'] : NULL;

// Mise a jour des informations
$update = $pdo->prepare("UPDATE adherent SET adherent.adresse='$adresse', adherent.tel_fixe='$telfixe', adherent.tel_port='$telport', adherent.email='$email' WHERE adherent.nom='$nom' and adherent.prenom='$prenom'");
$update->execute();

?>